<#macro TEXT field title width verify max min>
    <div class="layui-col-md${width}">
        <label class="layui-form-label">${title}</label>
        <div class="layui-input-inline">
            <input name="${field}" max-length="${max!}" min-length="${min!}" lay-verify="${(max!='')?string("max|","")}${(min!='')?string("min|","")}${verify!}" type="text" value="<#noparse>${</#noparse>data.${field}<#noparse>!}</#noparse>" placeholder="请输入内容" class="layui-input"/>
        </div>
    </div>
</#macro>
<#macro SELECT field title width dict verify max min>
    <div class="layui-col-md${width}">
        <label class="layui-form-label">${title}</label>
        <div class="layui-input-inline">
            <select name="${field}" lay-verify="${verify}">
                <option value=""></option>
                <#noparse><@dict</#noparse> code="${dict}">
                <#noparse><#list</#noparse> dicts as dict>
                <option value="<#noparse>${dict.value}" ${(data.</#noparse>${field}<#noparse>?? && data.</#noparse>${field}<#noparse>?string==dict.value)?string('selected','')}>${dict.note}</option></#noparse>
                <#noparse></#list></#noparse>
            <#noparse></@dict></#noparse>
        </select>
    </div>
    </div>
</#macro>
<#macro MULI_TEXT field title width verify max min>
    <div class="layui-col-md${width}">
        <label class="layui-form-label">${title}</label>
        <div class="layui-input-inline">
            <textarea name="${field}" max-length="${max!}" min-length="${min!}" lay-verify="${(max!='')?string("max|","")}${(min!='')?string("min|","")}${verify}" placeholder="请输入内容" class="layui-textarea"><#noparse>${data.</#noparse>${field}<#noparse>!}</#noparse></textarea>
        </div>
    </div>
</#macro>